package com.nuoniu.sibanyun.entity.crm;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 查询视图
 * </p>
 *
 * @author baiqiang
 * @since 2020-06-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("crm_user_search")
@ApiModel(value="CrmUserSearch对象", description="查询视图")
public class CrmUserSearch extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "视图名称")
    @TableField("search_name")
    private String searchName;

    @ApiModelProperty(value = "视图内容")
    @TableField("search_val")
    private String searchVal;

    @ApiModelProperty(value = "视图类型 //0:线索客户 1.潜在客户 2.成交客户  3.联系人 4.联系人记录  5.商机  6：供应商管理")
    @TableField("search_type")
    private Integer searchType;

    @ApiModelProperty(value = "描述")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "创建人")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty(value = "修改人")
    @TableField("update_user_id")
    private Integer updateUserId;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_date")
    private LocalDateTime updateDate;

    @ApiModelProperty(value = "状态(0:正常 1:删除 2：停用)")
    @TableField("status")
    private String status;


}
